<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
	<HEAD>
		<TITLE>安徽理工大学电信学院网络教学系统——用户登录</TITLE>
		<META http-equiv="Content-Type" content="text/html; charset=utf-8">
		<LINK rel="shortcut icon" href="favicon.ico" />		
		<LINK href="css/User_Login.css" type="text/css" rel="stylesheet">
		<script type="text/javascript" src="js/login.js"></script>
		<META content="安徽理工大学电信学院网络教学系统, 用户登陆" name="description">
		<META content="安徽理工大学电信学院网络教学系统, 用户登陆" name="keywords">
		<META content="Fabian" name="author">		
		<META content="MSHTML 6.00.6000.16674" name=GENERATOR>
	</HEAD>
	<BODY id="userlogin_body">
		<FORM name="loginForm" method="post" action="login.do" onsubmit="return checkLogin();">
			<DIV style="text-align: center">
				<img src="images/logo.jpg" border="0" />
			</DIV>

			<DIV id="user_login">
				<DL>
					<DD id="user_top">
						<UL>
							<LI class="user_top_l"></LI>
							<LI class="user_top_c"></LI>
							<LI class="user_top_r">
								<div class="loginWarning" id="loginWarn">
									<%
										Integer intFlag = (Integer)request.getAttribute("flag");
										if (intFlag != null) {
											int flag = intFlag.intValue();
											if (flag == 1) {
												out.println("<img src=\"images/error.png\"/>用户名，密码或角色不正确！"); 
											} else if (flag == 2) {
												out.println("<img src=\"images/error.png\"/>登陆超时，请重新登陆！"); 
											}
										}
									%>
								</div>
							</LI>
						</UL>
					<DD id="user_main">
						<UL>
							<LI class="user_main_l"></LI>
							<LI class="user_main_c">
								<DIV class="user_main_box">
									<UL>
										<LI class="user_main_text">
											用户名：
										</LI>
										<LI class="user_main_input">
											<INPUT class="TxtUserNameCssClass" id="TxtUserName" type="text"
												maxLength="20" name="username">
										</LI>
									</UL>
									<UL>
										<LI class="user_main_text">
											密&nbsp;&nbsp;&nbsp;&nbsp;码：
										</LI>
										<LI class="user_main_input">
											<INPUT class="TxtPasswordCssClass" id="TxtPassword"
												type="password" name="password">
										</LI>
									</UL>
									
									<%-- 
									<UL>
										<LI class=user_main_text>
											课&nbsp;&nbsp;&nbsp;&nbsp;程：
										</LI>
										<LI class=user_main_input>
											<select class="TxtLessonSelect" id="LessonSelect"
												name="lesson" style="width: 165px">
												<option value="请选择课程" selected="selected">
													<<&nbsp;--&nbsp;请选择课程&nbsp;--&nbsp;>>
												</option>
												<option value="自动控制原理">
													自动控制原理
												</option>
												<option value="电力电子技术">
													电力电子技术
												</option>
												<option value="电路">
													电路
												</option>
												<option value="数字电子技术">
													数字电子技术
												</option>
												<option value="模拟电子技术">
													模拟电子技术
												</option>
											</select>
										</LI>
									</UL>
									 --%>
									 
									 
									<UL>
										<LI class="user_main_text"></LI>
										<LI class="user_main_input">
											<input type="radio" name="role" value="student"
												checked="checked" id="studentRadio"/>
											学生&nbsp;
											<input type="radio" name="role" value="teacher" />
											老师&nbsp;
											<input type="radio" name="role" value="manager" />
											管理员
										</LI>
									</UL>
								</DIV>
							</LI>
							<LI class="user_main_r">
								<INPUT class="IbtnEnterCssClass" id="IbtnEnter"
									style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"
									type="image" src="images/user_botton.gif" name="IbtnEnter">
							</LI>
						</UL>
					<DD id="user_bottom">
						<UL>
							<LI class="user_bottom_l"></LI>
							<LI class="user_bottom_c">
								<SPAN style="MARGIN-TOP: 40px">
									Copyright &copy; 1945 - 
									<script>var d= new Date(); document.write(d.getFullYear());</script> AUST 版权所有
								</SPAN>
							</LI>
							<LI class="user_bottom_r"></LI>
						</UL>
					</DD>
				</DL>
			</DIV>

			<DIV></DIV>

		</FORM>
	</BODY>
</HTML>
